package com.yz.jdd.base.utils;

import android.os.Environment;

import com.yz.jdd.BuildConfig;


/**
 * Created by bingo on 2016/12/27.
 */

public class BaseConfigs {

    public static final boolean DEBUG = BuildConfig.DEBUG;
    public static final String LOG_TAG = "lkf";
    public static final String M_TAG = "lkf";


    public static final String  DEVICEID="tf_deviceid";
    public static final String STRING_MOVEKOUBEI="string_movekoubei";

    public static final String STRING_SERVER_URL="server_url";
    public static final String COMPARE_VERSION = "compare_version";//解压h5 zip包 版本判断

    public static final String BOOLEAN_H5MODULE = "boolean_h5module";//是否加载j5资源包

    /**
     * 是否可以核销
     */
    public static final String PREF_VERIFICATION_FLAG = "pref_verification_flag";
    /**
     * Sharedpreference文件名称
     */
    public static final String PREFS_NAME = "com.tongfu.bm";
    // *************************** sd卡资源路径 *******************************//
    public final static String filePathRoot = "/tfbm/pos";
    public final static String assetsName = "H5.zip";//assets文件下的压缩文件
    /***
     * 根目录路径
     */
    public final static String sdDirRoot = Environment
            .getExternalStorageDirectory().getPath();

    /***
     * 日志文件存储路径
     */
    public final static String LOG_LOCATION = sdDirRoot + filePathRoot + "/logs";


    /**
     * 是否第一次登陆
     */
    public final static String BOOLEAN_FIRSTTIME = "BOOLEAN_FIRSTTIME";

    /**
     * 版本号
     */
    public final static String INT_APP_VERSION = "INT_APP_VERSION";


    /**
     * 定位
     */
    public final static String STRING_LON = "STRING_LON";
    public final static String STRING_LAT = "STRING_LAT";

    /**
     * STRING_GUID
     */
    public final static String STRING_GUID = "STRING_GUID";


    public final static String PREF_SESSIONID = "sessionId";

    public final static String PREF_SHOPID = "shopId";



    public final static String PREF_SHOPNAME = "PREF_SHOPNAME";

    public final static String PREF_EVOUCHER_SHOPNAME = "pref_evoucher_shopname";

    public final static String  PREF_EVOUCHER_SHOPID = "pref_evoucher_shopid";

    public final static String   PREF_EVOUCHER_SHOPNUM="pref_evoucher_shopnum";

    public final static String PREF_CASH_SHOPNAME = "pref_cash_shopname";

    public final static String  PREF_CASH_SHOPID = "pref_cash_shopid";

    public final static String  PREF_CASH_PAYTYPES="pref_cash_paytypes";

    public final static String  PREF_CASH_SHOPNUM="pref_cash_shopnum";

    public final static String PREF_USERNAME = "PREF_USERNAME";

    public final static String LONG_TIMESTAP = "LONG_TIMESTAP";



    public final static String PREFS_STR_H5 = "h5Module";

    public static final String PREF_ROLE_ID = "roleId";// 账户角色
    public static final String PREF_ROLE_TIME = "roleTime";// 账户创建时间

    /**
     * 区域名
     */
    public static final String STRING_REGIONNAME="string_regionName";

    /**
     * 动态菜单数据（首页 我的等权限和显示模块信息）
     */
    public static final String PREF_MENUINFO = "pref_menuinfo";

    /**
     * 是否合并播报
     */
    public static final String BOOLEAN_COMBINE_ORDER="boolean_combine_order";

    /**
     * 本地收款过程语音提示
     */
    public static final String BOOLEAN_LOCAL_RECEIVABLES = "boolean_local_receivables";

    /**
     * 是否播报取消订单金额
     */
    public static final String  BOOLEAN_ORDER_CANCEL_AMOUNT="boolean_order_cancel_amount";

    /**
     * 订单筛选条件
     */
    public static final String  STRING_ORDER_CONDITION="order_condition";
    /**
     * 订单筛选条件
     */
    public static final String  STRING_ORDER_CONDITION_SN="order_condition_sn";

    /**
     * 消息页面
     */
    public static final String  PREF_MSG_COUNT="pref_msg_count";

    /**
     * 展示时间戳
     */
    public static final String  PREF_LONG_DIALOG_PERIOD="pref_long_dialog_period";

    /**
     * 广告内容md5
     */
    public static final String  PREF_STRING_DIALOG_ADMD5="pref_string_dialog_admd5";

    /**
     * 语音倍速
     */
    public static final String  INT_VOICE_SPEED="int_voice_speed";
    public static final String STRING_ROUTE_CODE = "string_route_code";


    /**
     * 通道
     */
    public class CHANNEL {

        public static final int UNRECEIVED = 0;
        public static final int XINGE = 1;
        public static final int ALI = 2;
        public static final int GETI = 3;
        public static final int JIGUANG = 4;

    }

    /**
     * 平台1 安卓
     */
    public class PLATFORM {
        public static final int ANDROID = 1;
    }

    /**
     * 播报结果
     */
    public class BROADCASTRESULT {
        public static final int SUCCESS = 2;
        public static final int FAILED = 3;
    }

    //扫码收款 ==============================
    public static final int COUNT_COUTDOWN = 60;//60秒倒计时
    public static final int COUTN_SHOW_CANCEL = 50;//显示撤销收款时间
    public final static String PREFS_CURRENT_CLIENTID = "prefs_current_clientid";
    //唯一设备号
    public static final String POS_SUPPLIERCODE = "pos_suppliercode";
    public static final String POS_SN = "pos_sn";
    public final static String STRING_ROUTERCODE = "STRING_ROUTERCODE";
    public static final String NET_ERROR_EOF = "网络不稳定，请稍候重试";


    public final static String PREFS_STR_EXTINFO = "extInfo";

    //固定金额设置
    public final static String BOOLEAN_POS_FIXED_AMOUNT = "boolean_pos_fixed_amount";
    //固定金额
    public final static String POS_FIXED_AMOUNT_VALUE = "pos_fixed_amount_value";
    //按键提示音
    public final static String BOOLEAN_POS_KEY_TONE = "boolean_pos_key_tone";
    //付款提示音
    public final static String POS_PAY_TONE = "pos_pay_tone";
    //收银台键盘样式
    public final static String PREF_KEY_STYLE = "pref_key_style";//
    //展示不参与优惠金额
    public final static String BOOLEAN_POS_NO_DISCOUNT = "boolean_pos_no_discount";

    public final static String PREF_SUCCESSS_HINT_TIME = "pref_success_hint_time";//收款成功提示时间
    public final static String PREF_FAIL_HINT_TIME = "pref_fail_hint_time";//收款失败提示时间
    public final static String CASHIER_REFUND = "cashier_refund";//记录从收银台进的退款

//    音频播报类型
    public static final int VOICE_SCAN_HINT = 17;// 扫码语音提示

}
